﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NetMQ;
using NetMQ.Sockets;

namespace IMLibrary.ExZeroMQ
{
   public enum ServerType
    {
        Response,
        Pub,
        Router,
        Stream,
        Push,
        XPub,

    }

    public enum ClientType
    {
        Request,
        Sub,
        Dealer,
        Stream,
        Pull,
        XSub,
    }


    public class MQEventArgs: EventArgs
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public MQEventArgs(byte[] data)
        {
            Data = data;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public MQEventArgs(byte[] clientID,byte[] data)
        {
            Data = data;
            ClientID = clientID;
        }

        /// <summary>
        /// 数据
        /// </summary>
        public byte[] Data;
        /// <summary>
        /// 客户端ID
        /// </summary>
        public byte[] ClientID;
    }
}
